<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>shark::IndicatorBasedSelection&lt; Indicator &gt; Struct Template Reference</title>
<script type="text/javaScript" src="search/search.js"></script>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3.0.1/es5/tex-mml-chtml.js"></script>
<script src="../../mlstyle.js"></script>
<link href="../css/besser.css" rel="stylesheet" type="text/css"/>
</head>
<!-- pretty cool: each body gets an id tag which is the basename of the web page  -->
<!--              and allows for page-specific CSS. this is client-side scripted, -->
<!--              so the id will not yet show up in the served source code -->
<script type="text/javascript">
    jQuery(document).ready(function () {
        var url = jQuery(location).attr('href');
        var pname = url.substr(url.lastIndexOf("/")+1, url.lastIndexOf(".")-url.lastIndexOf("/")-1);
        jQuery('#this_url').html('<strong>' + pname + '</strong>');
        jQuery('body').attr('id', pname);
    });
</script>
<body>
    <div id="shark_old">
        <div id="wrap">
            <div id="header">
                <div id="site-name"><a href="../../sphinx_pages/build/html/index.html">Shark machine learning library</a></div>
                <ul id="nav">
                    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/installation.html">Installation</a>
                    </li>
		    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/tutorials/tutorials.html">Tutorials</a>
                    </li>
		    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/benchmark.html">Benchmarks</a>
                    </li>
                    <li class="active">
                        <a href="classes.html">Documentation</a>
                        <ul>
                            <li class="first"></li>
                            <li><a href="../../sphinx_pages/build/html/rest_sources/quickref/quickref.html">Quick references</a></li>
                            <li><a href="classes.html">Class list</a></li>
                            <li class="last"><a href="group__shark__globals.html">Global functions</a></li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>
    </div>
<div id="doxywrapper">
<!--
    <div id="global_doxytitle">Doxygen<br>Documentation:</div>
-->
    <div id="navrow_wrapper">
<!-- Generated by Doxygen 1.9.8 -->
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespaceshark.html">shark</a></li><li class="navelem"><a class="el" href="structshark_1_1_indicator_based_selection.html">IndicatorBasedSelection</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="structshark_1_1_indicator_based_selection-members.html">List of all members</a> &#124;
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle"><div class="title">shark::IndicatorBasedSelection&lt; Indicator &gt; Struct Template Reference</div></div>
</div><!--header-->
<div class="contents">

<p>Implements the well-known indicator-based selection strategy.  
 <a href="structshark_1_1_indicator_based_selection.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_indicator_based_selection_8h_source.html">shark/Algorithms/DirectSearch/Operators/Selection/IndicatorBasedSelection.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ae1c5f7b2cd375c0abc8ec37f85ea80d8" id="r_ae1c5f7b2cd375c0abc8ec37f85ea80d8"><td class="memTemplParams" colspan="2">template&lt;typename PopulationType &gt; </td></tr>
<tr class="memitem:ae1c5f7b2cd375c0abc8ec37f85ea80d8"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="structshark_1_1_indicator_based_selection.html#ae1c5f7b2cd375c0abc8ec37f85ea80d8">operator()</a> (PopulationType &amp;population, std::size_t mu)</td></tr>
<tr class="memdesc:ae1c5f7b2cd375c0abc8ec37f85ea80d8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Executes the algorithm and assigns each member of the population its level non-dominance (rank) and its individual contribution to the front it belongs to (share).  <br /></td></tr>
<tr class="separator:ae1c5f7b2cd375c0abc8ec37f85ea80d8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6bb562cc8a260239e8c5f169920d33e4" id="r_a6bb562cc8a260239e8c5f169920d33e4"><td class="memTemplParams" colspan="2">template&lt;typename Archive &gt; </td></tr>
<tr class="memitem:a6bb562cc8a260239e8c5f169920d33e4"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="structshark_1_1_indicator_based_selection.html#a6bb562cc8a260239e8c5f169920d33e4">serialize</a> (Archive &amp;archive, const unsigned int version)</td></tr>
<tr class="memdesc:a6bb562cc8a260239e8c5f169920d33e4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Stores/restores the serializer's state.  <br /></td></tr>
<tr class="separator:a6bb562cc8a260239e8c5f169920d33e4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a23d24a2c30ee496f9b62a977c35e2ad4" id="r_a23d24a2c30ee496f9b62a977c35e2ad4"><td class="memItemLeft" align="right" valign="top">Indicator &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structshark_1_1_indicator_based_selection.html#a23d24a2c30ee496f9b62a977c35e2ad4">indicator</a> ()</td></tr>
<tr class="separator:a23d24a2c30ee496f9b62a977c35e2ad4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad067c94f4355a03de2b7a7c95faffee2" id="r_ad067c94f4355a03de2b7a7c95faffee2"><td class="memItemLeft" align="right" valign="top">Indicator const &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structshark_1_1_indicator_based_selection.html#ad067c94f4355a03de2b7a7c95faffee2">indicator</a> () const</td></tr>
<tr class="separator:ad067c94f4355a03de2b7a7c95faffee2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><div class="compoundTemplParams">template&lt;typename Indicator&gt;<br />
struct shark::IndicatorBasedSelection&lt; Indicator &gt;</div><p>Implements the well-known indicator-based selection strategy. </p>
<p>See Kalyanmoy Deb and Amrit Pratap and Sameer Agarwal and T. Meyarivan, A Fast Elitist Multi-Objective Genetic Algorithm: NSGA-II, IEEE Transactions on Evolutionary Computation Year 2000, Volume 6, p. 182-197</p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">Indicator</td><td>The second-level sorting criterion. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="_indicator_based_selection_8h_source.html#l00054">54</a> of file <a class="el" href="_indicator_based_selection_8h_source.html">IndicatorBasedSelection.h</a>.</p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="a23d24a2c30ee496f9b62a977c35e2ad4" name="a23d24a2c30ee496f9b62a977c35e2ad4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a23d24a2c30ee496f9b62a977c35e2ad4">&#9670;&#160;</a></span>indicator() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Indicator &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Indicator &amp; <a class="el" href="structshark_1_1_indicator_based_selection.html">shark::IndicatorBasedSelection</a>&lt; Indicator &gt;::indicator </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_indicator_based_selection_8h_source.html#l00121">121</a> of file <a class="el" href="_indicator_based_selection_8h_source.html">IndicatorBasedSelection.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_s_m_s_e_m_o_a.html#af7280dcb62a1e9b554f84516ebf6dbc5">shark::SMSEMOA::indicator()</a>, and <a class="el" href="classshark_1_1_s_m_s_e_m_o_a.html#a810bc33237cd97aa9dc0b067af297940">shark::SMSEMOA::indicator()</a>.</p>

</div>
</div>
<a id="ad067c94f4355a03de2b7a7c95faffee2" name="ad067c94f4355a03de2b7a7c95faffee2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad067c94f4355a03de2b7a7c95faffee2">&#9670;&#160;</a></span>indicator() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Indicator &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Indicator const  &amp; <a class="el" href="structshark_1_1_indicator_based_selection.html">shark::IndicatorBasedSelection</a>&lt; Indicator &gt;::indicator </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_indicator_based_selection_8h_source.html#l00124">124</a> of file <a class="el" href="_indicator_based_selection_8h_source.html">IndicatorBasedSelection.h</a>.</p>

</div>
</div>
<a id="ae1c5f7b2cd375c0abc8ec37f85ea80d8" name="ae1c5f7b2cd375c0abc8ec37f85ea80d8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae1c5f7b2cd375c0abc8ec37f85ea80d8">&#9670;&#160;</a></span>operator()()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Indicator &gt; </div>
<div class="memtemplate">
template&lt;typename PopulationType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="structshark_1_1_indicator_based_selection.html">shark::IndicatorBasedSelection</a>&lt; Indicator &gt;::operator() </td>
          <td>(</td>
          <td class="paramtype">PopulationType &amp;&#160;</td>
          <td class="paramname"><em>population</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>mu</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Executes the algorithm and assigns each member of the population its level non-dominance (rank) and its individual contribution to the front it belongs to (share). </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in,out]</td><td class="paramname">population</td><td>The population to be ranked. </td></tr>
    <tr><td class="paramdir">[in,out]</td><td class="paramname">mu</td><td>the number of individuals to select </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="_indicator_based_selection_8h_source.html#l00064">64</a> of file <a class="el" href="_indicator_based_selection_8h_source.html">IndicatorBasedSelection.h</a>.</p>

<p class="reference">References <a class="el" href="namespaceshark.html#a5e6aac0294d23a665c13d915f2886027">shark::nonDominatedSort()</a>, <a class="el" href="namespaceshark.html#a7742884160fe8dc36a05bf3325d28020">shark::penalizedFitness()</a>, and <a class="el" href="namespaceshark.html#ac7a0a589e10260fcd4da520c7e08295f">shark::ranks()</a>.</p>

</div>
</div>
<a id="a6bb562cc8a260239e8c5f169920d33e4" name="a6bb562cc8a260239e8c5f169920d33e4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6bb562cc8a260239e8c5f169920d33e4">&#9670;&#160;</a></span>serialize()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Indicator &gt; </div>
<div class="memtemplate">
template&lt;typename Archive &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="structshark_1_1_indicator_based_selection.html">shark::IndicatorBasedSelection</a>&lt; Indicator &gt;::serialize </td>
          <td>(</td>
          <td class="paramtype">Archive &amp;&#160;</td>
          <td class="paramname"><em>archive</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const unsigned int&#160;</td>
          <td class="paramname"><em>version</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Stores/restores the serializer's state. </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">Archive</td><td>Type of the archive. </td></tr>
  </table>
  </dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in,out]</td><td class="paramname">archive</td><td>The archive to serialize to. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">version</td><td>number, currently unused. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="_indicator_based_selection_8h_source.html#l00117">117</a> of file <a class="el" href="_indicator_based_selection_8h_source.html">IndicatorBasedSelection.h</a>.</p>

</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li>include/shark/Algorithms/DirectSearch/Operators/Selection/<a class="el" href="_indicator_based_selection_8h_source.html">IndicatorBasedSelection.h</a></li>
</ul>
</div><!-- contents -->
</div>
</body>
</html>
